// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';


  /** 点击量 */
export async function fetchHitsList(options) {
   const result = await request('/api/mjStatistics/hits', {
      method: 'POST',
      data: options,
    });
    return { data: result.data}
  }
  

    /** PV和UV */
export async function fetchPvUvList(options) {
    const result = await request('/api/mjStatistics/pvUv', {
       method: 'POST',
       data: options,
     });
     return { data: result.data}
   }
    /** 访客统计 */
export async function fetchVisitRecordList(options) {
    const result = await request('/api/mjStatistics/visitRecord', {
        method: 'POST',
        data: options,
        });
        return { data: result.data}
    }


///api/mjStatistics/selectTitle
export async function selectTitle(params) {
  return request('/api/mjStatistics/selectTitle', {
    method: 'GET',
    params: params,
  });
  
}


export async function modifyPassword(data) {
  return request('/api/sysUser/modifyPassword', {
    method: 'POST',
    data: data,
  });
}



//枚举值
export enum codeHits {
  //登录
    codeHits = "立即登录按钮(验证码登录)",
    accountHits = "立即登录按钮(账号登录)",
  
  //注册
    event_cb_registe = "立即注册按钮",
  
  // index 首页
    event_cb_index = "首页",
   event_cb_index_try_now = "立即试用按钮",
  event_cb_index_more = "了解更多按钮",
  event_cb_index_more_about = "了解详细信息按钮",
  event_cb_index_product_detail_api = "查看产品详情（数据 API 产品）",  
  event_cb_index_product_detail_guidao = "查看产品详情（轨道交通气象服务产品）",  
  event_cb_index_product_detail_hangkong = "查看产品详情（航空气象服务产品）",  
  
  event_cb_index_try_tree_now = "立即免费试用按钮",
  //event_cb_index_try_more = "了解更多",
  //event_cb_index_try_more_about = "了解详细信息",
  //event_cb_index_try_product_detail = "查看产品详情",
  //event_cb_register = "立即注册",
   //event_cb_index_product_detail = "产品详情",
   //event_cb_more_about = "了解详细信息",
  
  //导航栏菜单
    event_cb_menu_solution = "解决方案",
  
    // event_cb_menu_apis = "API菜单",
    // event_cb_menu_about = "关于我们",
    // event_cb_menu_solution = "解决方案",
  
  
    //event_cb_solution = "解决方案",
    event_cb_solution_guidao = "轨道交通气象服务解决方案",
  event_cb_solution_hangkong = "航空气象服务解决方案",
    event_cb_solution_gaosu = "高速公路气象服务解决方案",
  
    event_cb_solution_xinnengyuan = "能源气象服务解决方案",
    event_cb_solution_tiyu= "体育赛事气象服务解决方案",
    event_cb_solution_nongye = "农业气象服务解决方案",
    event_cb_solution_jiankang = "健康气象解决方案",
    event_cb_solution_huanbao = "环保气象服务解决方案",
    //event_cb_solution_qixiang = "气象服务解决方案",
  
  //产品
  event_cb_menu_product = "产品",
    event_cb_product_api = "数据 API 产品",
    event_cb_product_guidao = "轨道交通气象服务产品",
    event_cb_product_hangkong = "航空气象服务产品",
    event_cb_product_saishi = "赛事气象服务产品",
  
  //关于
  event_cb_menu_about= "关于",
  event_cb_about_about= "关于我们",
   event_cb_about_news = "新闻中心",
  
  //支持与帮助
  event_cb_menu_support = "支持与帮助",
  event_cb_support_api_doc = "数据 API 技术相关",
  event_cb_support_data_api =  "API 接口文档相关 ",
  vent_cb_help_after_sales = "售后及商务问题模版",
  //api
  event_cb_menu_apis= "API",
  
  //解决方案详情页
  
  // 待补充：申请试用按钮点击量，
  
  //产品详情页
  
  // 待补充：申请试用、立即购买按钮点击量，
  
  //api详情页
  event_cb_api_try_now = "立即申请按钮",
  event_cb_api_buy_now= "立即申请按钮",
  event_cb_api_consult_now= "立即咨询按钮",
  
  //关于我们详情页
  
  event_cb_about_video= "关于我们宣传片",
  
  //支持与帮助
  
  event_cb_help_api_doc= "数据 API 技术相关栏目",
  event_cb_help_data_api= "API 接口文档相关栏目",
  event_cb_help_after_sales= "售后及商务问题模版栏目",
  
  
  
  //悬浮框
  event_cb_connect_phone = "联系电话",
  event_cb_connect_follow = "关注我们",
  
  //底部导航栏
  //待补充
  
    //event_cb_product = "产品子模块",
    // event_cb_apis = "API",（浏览量
    // event_cb_news = "新闻",（浏览量
    // event_cb_support = "联系我们",（浏览量
    //event_cb_footer = "底部菜单",
  
   
    
   
  
  
  }
    